package com.jswdwsx.esign

import com.jswdwsx.esign.config.EsignProperties
import com.jswdwsx.esign.config.OssProperties
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.context.properties.EnableConfigurationProperties
import org.springframework.boot.runApplication
import org.springframework.data.jpa.repository.config.EnableJpaAuditing
import org.springframework.scheduling.annotation.EnableAsync
import org.springframework.transaction.annotation.EnableTransactionManagement
import springfox.documentation.swagger2.annotations.EnableSwagger2

@SpringBootApplication(scanBasePackages = ["com.jswdwsx.esign"])
@EnableConfigurationProperties(EsignProperties::class, OssProperties::class)
@EnableSwagger2
@EnableAsync
@EnableJpaAuditing
@EnableTransactionManagement
class EsignApplication

fun main(args: Array<String>) {
    runApplication<EsignApplication>(*args)
}
